package com.ywgt.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 广告表
 * </p>
 *
 * @author yiping
 * @since 2021-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dts_ad")
@ApiModel(value="Ad对象", description="广告表")
public class Ad implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "广告标题")
    private String name;

    @ApiModelProperty(value = "所广告的商品页面或者活动页面链接地址")
    private String link;

    @ApiModelProperty(value = "广告宣传图片")
    private String url;

    @ApiModelProperty(value = "广告位置：1则是首页")
    private Integer position;

    @ApiModelProperty(value = "活动内容")
    private String content;

    @ApiModelProperty(value = "广告开始时间")
    private Date startTime;

    @ApiModelProperty(value = "广告结束时间")
    private Date endTime;

    @ApiModelProperty(value = "是否启动")
    private Boolean enabled;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private Date addTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "逻辑删除")
    private Boolean deleted;


}
